package com.atde._05_behavioral_design_patterns.strategy;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._05_behavioral_design_patterns.strategy
 * @Author: Del
 * @CreateTime: 2025-06-30  15:15
 * @Description: 策略模式：具体的鸭子 --- 北京鸭
 * @Version: 1.0
 */
public class PekingDuck extends Duck{
    @Override
    public void display() {
        System.out.println("北京鸭");
    }
    // 不会飞
    @Override
    public void fly() {
        System.out.println("北京鸭不会飞");
    }
}
